package io.qar.dto;

import io.qar.commons.tools.validator.group.AddGroup;
import io.qar.commons.tools.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;

/**
 * @program: qar-cloud
 * @description:
 * @author: yyyyjinying
 * @create: 2023-10-08 13:34
 **/
@Data
@ApiModel(value = "登录参数")
public class LoginDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "grant_type")
    @NotNull(message = "grant_type{login.require}")
    private String grant_type;
    @ApiModelProperty(value = "grant_type")
    @NotNull(message = "username{login.require}")
    private String username;

    @ApiModelProperty(value = "password")
    @NotNull(message = "password{login.require}")
    private String password;

    @ApiModelProperty(value = "captcha")
    @NotNull(message = "captcha{login.require}")
    private String captcha;

    @ApiModelProperty(value = "uuid")
    @NotNull(message = "uuid{login.require}")
    private String uuid;
}
